import request from '@/request'
import type { ApiResponse } from '@/common/requestType'

interface AdsenseData {
  src: string
  url: string
}

export function getAdsenseData(
  type: string
): Promise<ApiResponse<AdsenseData[]>> {
  return request({
    url: `/adsense/${type}`,
    method: 'GET'
  })
}
